package csc.daonjpa.java.domain;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name="transaction")
public class Transaction implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	@Id
	@Column(name="transactionId")
	private int transactionId;
	
	@Column(name="sourceAccount")
	private String soucreAccount;
	
	@Column(name="targetAccount")
	private String targetAccount;
	
	@Column(name="targetBank")
	private String targetBank;
	
	@Column(name="targetBranch")
	private String targetBranch;
	
	@Column(name="amount")
	private double amount;
	
	@Column(name="date")
	private String date;
	
	public Transaction(){
		
	}

	public Transaction(String soucreAccount, String targetAccount,
			String targetBank, String targetBranch, double amount, String date) {
		super();
		this.soucreAccount = soucreAccount;
		this.targetAccount = targetAccount;
		this.targetBank = targetBank;
		this.targetBranch = targetBranch;
		this.amount = amount;
		this.date = date;
	}

	public int getTransactionId() {
		return transactionId;
	}

	public void setTransactionId(int transactionId) {
		this.transactionId = transactionId;
	}

	public String getSoucreAccount() {
		return soucreAccount;
	}

	public void setSoucreAccount(String soucreAccount) {
		this.soucreAccount = soucreAccount;
	}

	public String getTargetAccount() {
		return targetAccount;
	}

	public void setTargetAccount(String targetAccount) {
		this.targetAccount = targetAccount;
	}

	public String getTargetBank() {
		return targetBank;
	}

	public void setTargetBank(String targetBank) {
		this.targetBank = targetBank;
	}

	public String getTargetBranch() {
		return targetBranch;
	}

	public void setTargetBranch(String targetBranch) {
		this.targetBranch = targetBranch;
	}

	public double getAmount() {
		return amount;
	}

	public void setAmount(double amount) {
		this.amount = amount;
	}

	public String getDate() {
		return date;
	}

	public void setDate(String date) {
		this.date = date;
	}

	
}
